import request from '@/utils/request'

// 查询食品安全自查列表
export function listFoodsafety(query) {
  return request({
    url: '/Productionline/foodsafety/list',
    method: 'get',
    params: query
  })
}

// 查询食品安全自查详细
export function getFoodsafety(id) {
  return request({
    url: '/Productionline/foodsafety/' + id,
    method: 'get'
  })
}

// 新增食品安全自查
export function addFoodsafety(data) {
  return request({
    url: '/Productionline/foodsafety',
    method: 'post',
    data: data
  })
}

// 修改食品安全自查
export function updateFoodsafety(data) {
  return request({
    url: '/Productionline/foodsafety',
    method: 'put',
    data: data
  })
}

// 删除食品安全自查
export function delFoodsafety(id) {
  return request({
    url: '/Productionline/foodsafety/' + id,
    method: 'delete'
  })
}
